﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Geral.Master" Inherits="System.Web.Mvc.ViewPage<SiteAgle.Models.Usuario>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Novo
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Gestor Agile - CADASTROS (Editar)</h1>
    <form action="#" name="frmCadastros" id="frmCadastros" method="post" enctype="multipart/form-data">
    <div class="botoes">
        <a href="#" title="Salvar" class="save-cadastro">
            <div class="botoesBox"> 
                <span class="salvar"></span>
            </div>
        </a><a href="/usuario/listar" title="Voltar">
            <div class="botoesBox">
                <span class="voltar"></span>
            </div>
        </a>
    </div>
    <div id="content">
        <fieldset>
            <legend>Formulário</legend>
            <div class="fieldset-ajusta">
                <%:Html.HiddenFor(model => model.Id) %>
                <div class="campos">
                    <label for="txtNome">
                        Nome:*</label>
                    <%--	<input type="text" id="txtNome" class="required" name="txtNome" placeholder="Informe seu nome" autofocus>--%>
                    <%: Html.TextBoxFor(model => model.Nome, new { @class = "required range", @placeholder = "Informe seu nome" , @autofocus="" })%>
                </div>
                <div class="campos">
                    <label for="txtEmail">
                        E-mail:*</label>
                    <%--<input type="text" id="txtEmail" class="required email" name="txtEmail" placeholder="Informe seu e-mail">
                    --%>
                    <%: Html.TextBoxFor(model => model.Email, new { @class = "required range", @placeholder = "Informe seu e-mail" })%>
                </div>
                <div class="campos">
                    <label for="txtCargo">
                        Cargo:*</label>
                    <%= Html.DropDownListFor(model => model.IdCargo, SiteAgle.ViewHelper.DropDowns.CargoVO(), new { @class = "required range" })%>
                </div>
                <div class="campos">
                    <label for="txtNivelAcesso">
                        Nível de Acesso:*</label>
                    <%= Html.DropDownListFor(model => model.Acesso, SiteAgle.ViewHelper.DropDowns.AcessoVO(), new { @class = "required range" })%>
                </div>
                <div class="t100">
                    <div class="campos">
                        <label for="txtLogin">
                            Login:*</label>
                        <%: Html.TextBoxFor(model => model.Login, new { @class = "required", @placeholder = "Informe seu login" })%>
                    </div>
                    <div class="campos">
                        <label for="txtSenha">
                            Senha:*</label>
                        <%: Html.TextBoxFor(model => model.Senha, new { @class = "required", @placeholder = "Informe sua senha", @type = "password" })%>
                    </div>
                    <div class="campos">
                        <label for="txtSenha2">
                            Confirmar Senha:*</label>
                        <input type="password" id="txtSenha2" class="required" name="txtSenha2" placeholder="confirme sua senha"
                            value="<%:Model.Senha %>" />
                    </div>
                    <div class="campos">
                        <label for="txtFoto">
                            Foto (180 x 240):</label>
                        <input type="file" id="txtFoto" name="txtFoto">
                    </div>
                    <% if (!String.IsNullOrEmpty(Model.Foto))
                       { %>
                    <div class="campos">
                        <img src="<%:Model.Foto %>" alt="<%:Model.Nome %>" width="180" height="240" />
                    </div>
                    <%} %>
                </div>
            </div>
        </fieldset>
    </div>
    <!-- CONTENT -->
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentScripts" runat="server">
</asp:Content>
